<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<h1>
项目的运行路径:<%out.print(application.getRealPath("")); %>
</h1>
<%
  Integer visit=(Integer)application.getAttribute("visitnum");
  if(visit==null)
  	visit=1;
  else
  	visit++;
  	
 application.setAttribute("visitnum", visit);		
 %>
 <h1>访问次数<%=visit%></h1>
</body>
</html>